package com.kstech.test.padxmledit;


import android.app.FragmentManager;
import android.app.FragmentTransaction;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class EditDataActivity extends AppCompatActivity {
    private FragmentManager manager;
    private FragmentTransaction transaction;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_edit_data);
        manager = getFragmentManager();
        transaction = manager.beginTransaction();
        EditListFragMent elFragment = new EditListFragMent();
        EditFragMent editFragMent = new EditFragMent();
        transaction.add(R.id.ll_data_list,elFragment,"EditListFragMent");
        transaction.add(R.id.ll_data_edit,editFragMent,"EditFragMent");
        transaction.commit();
    }

    @Override
    public void onBackPressed() {
        Globals.list_edit.clear();
        finish();
    }
}
